<?php
/**
 * Created by PhpStorm.
 * User: chy
 * Date: 2017/4/1
 * Time: 13:50
 */
?>
<?php foreach ($items as $item){?>
    <a href="<?=\yii\helpers\Url::to(['/post', 'id' => $item['id']])?>">
        <div class="example_info">
            <img src="<?=$item['face']?>">
            <p><?=$item['title']?></p>
        </div>
    </a>
<?php }?>
